import Vue from 'vue'
import App from './App'
import store from './store'
import axios from 'axios'
import router from './router'
import jquery from 'jquery'
import echarts from "echarts"
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import './permission'

Vue.use(ViewUI);

Vue.prototype.$echarts = echarts;
Vue.prototype.$jquery = jquery;

if (process.env.VUE_APP_SERVER === 'mock') require('../mock')
Vue.config.productionTip = false

axios.defaults.baseURL = ''
axios.defaults.timeout = 5000
Vue.prototype.$axios = axios;

new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})